<?php
	// no direct access
	defined( '_JEXEC' ) or die( 'Restricted access' );

	require_once dirname(__FILE__).'/helper.php';	
	
	$action = JRequest::getVar('action', 'form');
	if($action == 'save') {
		$record	= modLkregistrationHelper::register(JRequest::get('post'));
		//JModuleHelper::setRedirect(JRoute::_('index.php?option=com_content&view=article&id=69', false));
	}

	$layout		= $params->get('layout', 'default');
	$categories = modLkregistrationHelper::getWmCategories();
	$articleId	= $params->get('article_id', '71');
	$itemId		= $params->get('item_id', '477');
	
	require JModuleHelper::getLayoutPath('mod_lkregistration', $layout);
?>